import org.xml.sax.*;
import org.xml.sax.helpers.*;
import javax.xml.parsers.*;
import java.util.*;

public class ParseBySAX
{
    //java.util.Stack stack = new java.util.Stack();

    public static void main(String[] args)
    {
        ArrayList<String> al = new ArrayList<String>();
        al.add("one");
        al.add("two");
        al.add("three");

        int size = al.size();
        Object[] arr = new Object[size];
        arr = al.toArray();
        for (int i = 0; i<arr.length; i++) {
            System.out.println(arr[i]);
            System.out.println(arr[i].getClass().getName());
        }
        
    }
}
